<template>
  <tx-table-column :prop="prop" :label="label" :sortable="sortable"  :width="width" :show-overflow-tooltip="true" :align="align" :tips="tips" :icon="icon">
    <template slot-scope="scope">
      <span v-if="prop">{{scope.row[prop]}}</span>
      <slot v-else :scope="scope" :row="scope.row" />
    </template>
  </tx-table-column>
</template>
<script>
export default {
  props: {
    label: {
      type: String,
      default: "文本内容"
    },
    prop: {
      type: String,
      default: ""
    },
    sortable: {
      type: Boolean,
      default: false
    },
    width: {
      type: String,
      default: ""
    },
    align: {
      type: String,
      default: "ceter"
    },
    tips: {
      type: String,
      default: ""
    },
    icon: {
      type: String,
      default: "el-icon-question"
    },
  }
};
</script>

 


